<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<c:if test="${b_T_Ufp_Project!=null }">
<div class="pageHeader" style="border:1px #B8D0D6 solid">
<jsp:include page="../include/_dwz_form_head.jsp" />
<div class="pageHeader">
	<%-- <c:choose>
	<c:when test="${b_T_Ufp_Project.categoryStatus ==0}"> --%>
	<form rel="pagerForm" onsubmit="return divSearch(this, '${b_T_Ufp_Project.categoryStatus ==0?'projectDetail':'projectDetailH'}');" action="systemsetting/Project_projectList?flag=${b_T_Ufp_Project.categoryName },${b_T_Ufp_Project.categoryUuid},${b_T_Ufp_Project.status},${b_T_Ufp_Project.categoryStatus}" method="post" >
	<%-- </c:when>
	<c:otherwise>
	<form rel="pagerForm" onsubmit="return divSearch(this, 'projectDetailH');" action="systemsetting/Project_projectList?flag=${b_T_Ufp_Project.categoryName },${b_T_Ufp_Project.categoryUuid},${b_T_Ufp_Project.status},${b_T_Ufp_Project.categoryStatus}" method="post" >
	</c:otherwise>
	</c:choose> --%>
	<div class="searchBar">
		<ul class="searchContent">
            <li>
                    <label>
                  类别名称：
                    </label>
                    <input type="text" id="categoryName" name="b_T_Ufp_Project.categoryName" value="${b_T_Ufp_Project.categoryName}"/>
                </li>
                <li>
                    <label>
                    项目名称：
                    </label>
                    <input type="text" id="projectName" name="b_T_Ufp_Project.projectName" value="${b_T_Ufp_Project.projectName}"/>
                </li>
               <%--  <li>
                    <label>
                        真实姓名：
                    </label>
                    <input type="text" id="realName" name="b_T_Ufp_Project.realName"  value="${b_T_Ufp_Project.realName}"/>
                </li> --%>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    搜索
                                </button>
                            </div>
                        </div>
                    </li>
                  
                </ul>
            </div>
	</div>
	</form>
</div>
<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
<div class="panelBar">
		 <ul class="toolBar">
            <li>
                <a class="add" href="systemsetting/Project_projectDetail?flag=${b_T_Ufp_Project.categoryName },${b_T_Ufp_Project.categoryUuid},${b_T_Ufp_Project.status},${b_T_Ufp_Project.categoryStatus}" target="dialog" rel="projectDetail"  width="530" height="520"><span>添加</span></a>
            </li>
            <li>
                <a title="确实要删除这些记录吗?" target="selectedTodo" rel="checkIds" href="systemsetting/Project_projectDelete?b_T_Ufp_Project.categoryStatus=${b_T_Ufp_Project.categoryStatus}" class="delete"><span>删除</span></a>
          	</li>
            <li class="line">
                line
            </li>
        </ul>
	</div>
	<table class="table" width="100%" layoutH="182" rel="${b_T_Ufp_Project.categoryStatus ==0?'projectDetail':'projectDetailH'}">
		<thead>
			<tr>
                <th width="2%">
                    <input type="checkbox" name="checkIds" group="checkIds" class="checkboxCtrl">
                </th>
                <th width="2%" >
              序号        
                </th>
                 <th width="5%" orderField="project_num" <c:if test="${(pager.orderField)== 'project_num' }">class="${pager.orderDirection}"</c:if>>
             项目编号
                </th>
                 <th width="10%" orderField="project_name" <c:if test="${(pager.orderField)== 'project_name' }">class="${pager.orderDirection}"</c:if>>
             项目名称
                </th>
              <th width="7%" orderField="finishes" <c:if test="${(pager.orderField)== 'finishes' }">class="${pager.orderDirection}"</c:if>>
             饰面
                </th> 
                <th width="6%" orderField="unit" <c:if test="${(pager.orderField)== 'unit' }">class="${pager.orderDirection}"</c:if>>
                 单位
                </th>
                 <th width="6%" orderField="labor_cost" <c:if test="${(pager.orderField)== 'labor_cost' }">class="${pager.orderDirection}"</c:if>>
                人工费
                </th>
                 <th width="5%" orderField="material_cost" <c:if test="${(pager.orderField)== 'material_cost' }">class="${pager.orderDirection}"</c:if>>
                材料费
                </th>
                  <th width="5%" orderField="total" <c:if test="${(pager.orderField)== 'total' }">class="${pager.orderDirection}"</c:if>>
                合计
                </th>
                  <th width="10%" orderField="remark" <c:if test="${(pager.orderField)== 'remark' }">class="${pager.orderDirection}"</c:if>>
              附加说明
                </th>
                <th width="5%">
                    操作
                </th>
            </tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.pageRecords}" var="b_T_Ufp_Project" varStatus="s">
            <tr target="sid_user" rel="1">
                <td>
                    <input name="checkIds" value="${b_T_Ufp_Project.uuid}" type="checkbox">
                </td>
                 <td>
                  ${s.count +pager.pageSize*(pager.currentPage-1)}
                </td>
                 <td>
                    ${b_T_Ufp_Project.projectNum }
                </td>
                <td>
                    ${b_T_Ufp_Project.projectName }
                </td>
                  <td>
                    ${b_T_Ufp_Project.finishes}
                </td> 
                  <td>
                    ${b_T_Ufp_Project.unit }
                </td>
                 <td>
                    ${b_T_Ufp_Project.laborCost }
                </td>
                <td>
                    ${b_T_Ufp_Project.materialCost }
                </td>
                <td>
                    ${b_T_Ufp_Project.total }
                </td>
                 <td>
                  ${b_T_Ufp_Project.remark }
                </td>
                <td>
                    <a title="删除" target="ajaxTodo" href="systemsetting/Project_projectDelete?checkIds=${b_T_Ufp_Project.uuid}&b_T_Ufp_Project.categoryStatus=${b_T_Ufp_Project.categoryStatus}" class="btnDel">删除</a>
                    <a title="编辑" target="dialog"  width="530" height="520" href="systemsetting/Project_projectDetail?b_T_Ufp_Project.uuid=${b_T_Ufp_Project.uuid }" rel="editMsg" class="btnEdit">编辑</a>
                </td>
            </tr>
            </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
	 <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, '${b_T_Ufp_Project.categoryStatus ==0?'projectDetail':'projectDetailH'}')">
            <option value="5" ${pager.pageSize == 5?'selected=\"selected\"':''}>5</option>
            <option value="10" ${pager.pageSize == 10?'selected=\"selected\"':''}>10</option>
            <option value="15" ${pager.pageSize == 15?'selected=\"selected\"':''}>15</option>
            <option value="20" ${pager.pageSize == 20?'selected=\"selected\"':''}>20</option>
            <option value="25" ${pager.pageSize == 25?'selected=\"selected\"':''}>25</option>
            <option value="30" ${pager.pageSize == 30?'selected=\"selected\"':''}>30</option>
            <option value="35" ${pager.pageSize == 35?'selected=\"selected\"':''}>35</option>
		    <option value="40" ${pager.pageSize == 40?'selected=\"selected\"':''}>40</option>
            <option value="45" ${pager.pageSize == 45?'selected=\"selected"':''}>45</option>
            <option value="50" ${pager.pageSize == 50?'selected=\"selected\"':''}>50</option>
            <option value="100" ${pager.pageSize == 100?'selected=\"selected\"':''}>100</option>
            <option value="150" ${pager.pageSize == 150?'selected=\"selected\"':''}>150</option>
            <option value="200" ${pager.pageSize == 200?'selected=\"selected\"':''}>200</option>
            </select>
            <span>条，共${pager.totalRecords}条</span>
        </div>
        <div class="pagination" rel="${b_T_Ufp_Project.categoryStatus ==0?'projectDetail':'projectDetailH'}" totalCount="${pager.totalRecords}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.currentPage}">
        </div>
	</div>
</div>
</c:if>